package com.asiainfo.work.service.second;

import com.asiainfo.work.entity.ZtBug;
import com.asiainfo.work.request.zentao.BugRequest;
import com.asiainfo.work.utils.BaseResponse;
import com.asiainfo.work.utils.PageResponse;
import com.asiainfo.work.vo.BugClosedConsumeTimeStatistics;
import com.asiainfo.work.vo.BugClosedStatistics;
import com.asiainfo.work.vo.BugConsumeTimeStatistics;
import com.asiainfo.work.vo.BugStatistics;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* <p>
    *  Service
    * </p>
*
* @author baifan
* @date 2021-01-06
*/
public interface ZtBugService extends IService<ZtBug> {

    /**
     * 解决禅道bug消耗时间
     * @param bugRequest 查询条件
     * @return分页返回任务数
     */
    BaseResponse<PageResponse<BugConsumeTimeStatistics>> queryConsumeBugTime(BugRequest bugRequest);

    /**
     * 已经关闭的bug消耗时间
     */
    BaseResponse<PageResponse<BugClosedConsumeTimeStatistics>> queryClosedBugConsumeTime(BugRequest bugRequest);

    /**
     * 统计总bug数
     */
    BaseResponse<PageResponse<BugStatistics>> queryBugCount(BugRequest bugRequest);

    /**
     * 统计已经关闭的bug数
     */
    BaseResponse<PageResponse<BugClosedStatistics>> queryBugClosedCount(BugRequest bugRequest);
}
